package edu.zqu.collegeField.framework.activiti.service;

import org.activiti.engine.runtime.ProcessInstance;


public class ActivitiStartInstance extends ActivitiBase {
    public static void startInstance(String processKey,String businessKey) {
        /**
         * 3.创建流程实例，流程定义的key需要知道holiday
         */

        ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processKey,businessKey);
        /**
         * 输出processInstance相关信息
         */
        System.out.println("流程部署ID"+processInstance.getDeploymentId());
        System.out.println("实例ID"+processInstance.getId());
        System.out.println("BusinessKeyID"+processInstance.getBusinessKey());
    }
}
